home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 February / Macworld (1999-02).dmg / Games World / SharewareGames / Xconq 7.2.2 / lib / future.g < prev    next >
Text File  |  1998-05-22  |  12KB  |  382 lines

  1. (game-module "future"
  2.   (title "2200 AD")
  3.   (blurb "Futuristic period from Jay Scott")
  4.   (variants (world-seen true))
  5.   )
  6.  
  7. (unit-type hovercar (image-name "hovercraft") (char "h")
  8.   (help "easily built, moves fast and captures cities"))
  9. (unit-type groundcar (image-name "tank") (char "g")
  10.   (help "slow but tough, captures cities"))
  11. (unit-type saucer (char "s")
  12.   (help "moves fast, easy to build, but short range"))
  13. (unit-type defender (image-name "delta") (char "d")
  14.   (help "heavy aircraft that defeats subs and saucers"))
  15. (unit-type constructor (image-name "builder") (char "c")
  16.   (help "builds bases anywhere"))
  17. (unit-type mothership (char "m")
  18.   (help "carries aircraft and ground units"))
  19. (unit-type transport-sub (image-name "sub") (char "t")
  20.   (help "quickly built, carries ground units"))
  21. (unit-type attack-sub (image-name "sub") (char "a")
  22.   (help "attacks cities and carries rockets"))
  23. (unit-type rocket (char "R")
  24.   (help "missile that can kill most units and hit cities"))
  25. (unit-type base (char "/") (image-name "saucerpad")
  26.   (help "airstrip + port but no production"))
  27. (unit-type town (image-name "town22") (char "*")
  28.   (help "produces but easily captured and may revolt"))
  29. (unit-type city (image-name "city22") (char "@")
  30.   (help "metropolis - hard to capture"))
  31.  
  32. (material-type fuel (help "used for both movement and combat"))
  33.  
  34. (terrain-type sea (char "."))
  35. (terrain-type shallows (char ","))
  36. (terrain-type swamp (char "="))
  37. (terrain-type plains (char "+"))
  38. (terrain-type forest (char "%"))
  39. (terrain-type desert (char "~"))
  40. (terrain-type mountains (char "^"))
  41. (terrain-type ice (char "_"))
  42. (terrain-type vacuum (char ":"))
  43.  
  44. (define h hovercar)
  45. (define g groundcar)
  46. (define s saucer)
  47. (define d defender)
  48. (define c constructor)
  49. (define m mothership)
  50. (define t transport-sub)
  51. (define a attack-sub)
  52. (define R rocket)
  53. (define / base)
  54. (define * town)
  55. (define @ city)
  56.  
  57. (define movers ( h g s d c m t a R ))
  58. (define cities ( / * @ ))
  59.  
  60. (define water-t* (sea shallows))
  61. (define land ( swamp plains forest desert mountains ice ))
  62.  
  63. (add water-t* liquid true)
  64.  
  65. ;;; Static relationships.
  66.  
  67. ;; Unit-unit.
  68.  
  69. (table unit-capacity-x
  70.   ;; (shouldn't motherships be able to carry rockets?)
  71.   (m ( h g s d c ) ( 6 4 10 2 1 ))
  72.   (a R 4)
  73.   (t ( h g ) ( 2 1 ))
  74.   )
  75.  
  76. (add cities capacity ( 8 32 32 ))
  77.  
  78. (table unit-size-as-occupant
  79.   (u* u* 99)
  80.   (movers cities 1)
  81.   )
  82.  
  83. ;; Unit-material.
  84.  
  85. (table unit-storage-x (u* fuel ( 30 40 16 16 30 40 200 150 30 500 1000 2000 )))
  86.  
  87. ;;; Vision.
  88.  
  89. ;; Subs have very good stealth.
  90.  
  91. (table visibility (( t a ) t* 0))
  92.  
  93. (add cities see-always 1)
  94.  
  95. ;;; Actions.
  96.  
  97. (add movers acp-per-turn ( 3 1 8 4 3 6 2 3 10 ))
  98. (add cities acp-per-turn ( 0 1 1 ))
  99.  
  100. ;;; Movement.
  101.  
  102. (add cities speed 0)
  103.  
  104. (table mp-to-enter-terrain
  105.   (u* t* 99)
  106.   (h plains 1)
  107.   (h shallows 2)
  108.   (g ( plains desert ) 1)
  109.   (( s d c m ) t* 1)
  110.   (( t a ) ( sea shallows ) 1)
  111.   (R t* 1)
  112.   )
  113.  
  114. (table consumption-per-move (movers fuel 1))
  115.  
  116. ;;; Construction.
  117.  
  118. ;;               h g s d   c  m t a  R
  119. (add movers cp ( 4 6 2 10 10 20 7 12 8 ))
  120. (add / cp 3)
  121.  
  122. (table acp-to-create
  123.   (c / 1)
  124.   ((* @) movers 1)
  125.   )
  126.  
  127. (table acp-to-build
  128.   (c / 1)
  129.   ((* @) movers 1)
  130.   )
  131.  
  132. (table acp-to-toolup
  133.   (c / 1)
  134.   ((* @) movers 1)
  135.   )
  136.  
  137. ;; Future hi-tech needs more elaborate infrastructure, so toolup costs
  138. ;; are high for some types.
  139.  
  140. (table tp-to-build
  141.   (c / 1)
  142.   ;;          h  g  s  d  c  m  t  a  R
  143.   (* movers ( 1  1  1  5  9 10  1  2 25))
  144.   (@ movers ( 1  1  1  5  9 10  1  2 25))
  145.   )
  146.  
  147. (table tp-max
  148.   (c / 1)
  149.   (* movers ( 1  1  1  5  9 10  1  2 25))
  150.   (@ movers ( 1  1  1  5  9 10  1  2 25))
  151.   )
  152.  
  153. ;;; Combat.
  154.  
  155. (add u* hp-max ( 1 1 1 2 2 5 2 2 1 10 20 40 ))
  156.  
  157. (table hit-chance 
  158.   (h u* (  65  60  40  50  50  50   5   5  50  99  99  99 ))
  159.   (g u* (  80  60  50  40  50  50  10  10  50  99  99  99 ))
  160.   (s u* (  50  40  70  10  70  90  10  10  99  99  99  99 ))
  161.   (d u* (  10  10  65  20  70  70  50  50  20  99  99  99 ))
  162.   (c u* (  20  20  10   5  20  10   0   0  20   0   0   0 ))
  163.   (m u* (  15  10  20   5  40  40   0   0  30   0   0   0 ))
  164.   (t u* (   0   0   0   0   0   0   0   0   0   0   0   0 ))
  165.   (a u* (  40  60  10  10  20  20  60  20   0  99  99  99 ))
  166.   (R u* (  99  99  60  80  90  90  70  70  20  99  99  99 ))
  167.   (/ u* (  10  10  10  20   0   0   0  10   0   0   0   0 ))
  168.   (* u* (  30  30  30  40   0   0   0  20   0   0   0   0 ))
  169.   (@ u* (  50  50  50  50   0   0   0  50   0   0   0   0 ))
  170.   ;; Guarantee that the rocket will be destroyed in its attack.
  171.   (u* R 100)
  172.   )
  173.  
  174. (table damage 
  175.   (u* u* 1)
  176.   (a cities 3)
  177.   (R u* 4)
  178.   (R cities 10)
  179.   (@ u* 2)
  180.   )
  181.  
  182. (table capture-chance
  183.   (h cities ( 80 70 20 ))
  184.   (g cities ( 90 80 30 ))
  185.   )
  186.  
  187. (table consumption-per-attack (u* fuel 1))
  188.  
  189. (table hit-by (u* fuel 1))
  190.  
  191. ;;; Other actions.
  192.  
  193. ;; We can always disband units freely.
  194.  
  195. (add u* acp-to-disband 1)
  196.  
  197. (add u* hp-per-disband 100)
  198.  
  199. ;;; Backdrop economy.
  200.  
  201. (table base-production (cities fuel 10))
  202.  
  203. (table base-consumption
  204.   (( s d ) fuel 1)
  205.   (u* fuel 1)    ; not plausible, but helps machine players (???)
  206.   )
  207.  
  208. (table hp-per-starve
  209.   ;; High-tech stuff disintegrates without fuel.
  210.   (u* fuel 1.00)
  211.   )
  212.  
  213. (table out-length
  214.   (movers fuel -1)      ; so low-capacity units don't lose fuel
  215.   (cities fuel 1)
  216.   )
  217.  
  218. (table in-length
  219.   (u* fuel 1)
  220.   )
  221.  
  222. ;;; Scoring.
  223.  
  224. (add cities point-value ( 1 5 25 ))
  225.  
  226. (scorekeeper (do last-side-wins))
  227.  
  228. ;;; Setup.
  229.  
  230. (add t* alt-percentile-min (   0  69  70  70  70  70  95  99   0 ))
  231. (add t* alt-percentile-max (  69  70  72  95  95  95  99 100   0 ))
  232. (add t* wet-percentile-min (   0   0  50  20  80   0   0   0   0 ))
  233. (add t* wet-percentile-max ( 100 100 100  80 100  20 100 100   0 ))
  234.  
  235. (set edge-terrain ice)
  236.  
  237. (add cities start-with ( 0 2 1 ))
  238.  
  239. (table independent-density (* land 100))
  240.  
  241. (table favored-terrain
  242.   (u* t* 0)
  243.   (( * @ ) ( plains ) 100)
  244.   )
  245.  
  246. ;; A game's starting units will be full by default.
  247.  
  248. (table unit-initial-supply (u* m* 9999))
  249.  
  250. ;;; Documentation.
  251.  
  252. (game-module (notes (
  253. "A science fiction Xconq period.
  254. It's weirder and wilder than the historical periods provided with the game.
  255. Lots of things happen faster, so the game is often shorter.
  256. "
  257. "This is in the public domain.
  258. "
  259. " -----  -----  strategy  -----  -----
  260. "
  261. "The game is designed so you need to have at least a few of every
  262. kind of unit to do well in a full game.  (You may be able to get by
  263. without transport subs if you start out on a big continent.)  If
  264. anybody finds they can consistently do well without some kind of unit,
  265. I want to hear how so I can fix it!
  266. "
  267. "Every unit has at least one nemesis which can destroy it relatively
  268. easily.  Your goal should be to fight every battle at an advantage,
  269. pitting each unit against its natural prey--saucers against hovercars,
  270. defenders against saucers, hovercars against defenders.
  271. "
  272. "Rockets ensure that the game doesn't drag on too long.  Invasion is
  273. risky, but when it works the invader wins quickly.  Rockets by contrast
  274. are a slow but steady way to nibble at the enemy production base.
  275. "
  276. "Machine players are especially easy to defeat in this period.  If you're
  277. lucky enough to start near one, you can blitz it with hovercars and
  278. saucers and win in short order.  It takes longer if you're far from
  279. the robot.  Gaining air superiority is usually the first step.
  280. "
  281. "The game hasn't been played by enough people for me to tell what
  282. strategies are best in different circumstances.  If I've done my
  283. job well, the best plan will depend in detail on the opponent and
  284. the situation, and you'll have to think hard.
  285. "
  286. "I'd appreciate any comments.
  287.  
  288.     Jay Scott, August 1987.
  289.     ...bpa!swatsun!scott
  290.        ...seismo!bpa!swatsun!scott"
  291. )))
  292.  
  293. (add hovercar notes '(
  294. "Hovercar.  A fast-moving ground unit that easily captures towns.  A
  295. hovercar floats on an antigravity field, so it can maneuver easily
  296. even in mountainous terrain or shallow water (though not deep ocean).
  297. Hovercars are invaluable in an invasion for their ability to take
  298. cities quickly, but they are easily destroyed by flying saucers or
  299. groundcars."
  300. ))
  301.  
  302. (add groundcar notes '(
  303. "Groundcar.  A slow-moving unit which travels on treads, like today's
  304. tanks.  It can afford to carry a large shield generator, which makes
  305. it tough to destroy.  It can negotiate forests by pushing down the
  306. trees, or burning them away with its gun, but it can't move in
  307. mountains.  Groundcars are ideal for defending your homeland from
  308. invasion.  If you have enough on hand, you can often bounce back even
  309. after many of your towns are captured."
  310. ))
  311.  
  312. (add saucer notes '(
  313. "Saucer.  The flying saucer is a weak but fast-moving aircraft.  Saucers
  314. are very cheap to produce; one use is to overwhelm stronger units with
  315. mob attacks.  They can even bombard a city to rubble, unless there's
  316. a Defender around.  Saucers are also good for recon, within their limited
  317. range."
  318. ))
  319.  
  320. (add defender notes '(
  321. "Defender.  A heavy, delta-wing aircraft that's your only safe defense
  322. against the enemy's swarms of saucers.  It uses aerodynamic lift to 
  323. supplement its drive, allowing it to carry relatively massive
  324. antisubmarine equipment.  But it's an easy target for ground units."
  325. ))
  326.  
  327. (add constructor notes '(
  328. "Constructor.  An automated airborn factory that can build a base from
  329. on-site materials in only one turn.  It can build a base anywhere, even
  330. on water or ice.  That means, for instance, that you can build bridges
  331. between islands for ground units.  The constructor is the only way
  332. to produce the sophisticated equipment needed for a twenty-second
  333. century base (you don't know how hard it is to refuel those saucers :-).
  334. But it's vulnerable to attack, especially from saucers."
  335. ))
  336.  
  337. (add mothership notes '(
  338. "Mother ship.  Expensive to build, but the only way to mount a major
  339. invasion.  A mother ship can carry lots of saucers, lots of ground
  340. units, a couple Defenders and a constructor, all at once.  (The constructor
  341. is useful for building stepping stone bases toward the enemy.)
  342. A mass attack is sure to bring down a mother ship, so it deserves
  343. saucer patrols--but you may have to forego patrols if you're trying
  344. for a surprise invasion."
  345. ))
  346.  
  347. (add transport-sub notes '(
  348. "Transport sub.  Carries only a few ground units, but much cheaper to
  349. produce than a mother ship.  This is how you get your troops to another
  350. island early in the game.  And since, like subs in the WWII period,
  351. it's invisible until bumped into, it's good for sneak raids on isolated
  352. outposts.  A transport submarine can't attack anything by itself."
  353. ))
  354.  
  355. (add attack-sub notes '(
  356. "Attack sub.  Strong against transport subs, and, if they're on the coast,
  357. ground units and cities.  It stays underwater and pokes its weapons out,
  358. which makes it relatively invulnerable to counterattack.  It's faster
  359. than a transport sub, and good for wide-ranging exploration.  And to top
  360. it off, it can carry several rockets to within easy range of enemy cities.
  361. On the other hand, all submarines have to be careful of Defenders."
  362. ))
  363.  
  364. (add rocket notes '(
  365. "Rocket.  Actually a remotely guided missile, which does a lot of damage
  366. to its target but vaporizes itself in the process.  One rocket is
  367. enough to take out most units--it's not quite enough by itself
  368. to down a mother ship.  Three rockets together are sufficient to pound
  369. a town back to a base.  Only occasionally will a rocket miss its target.
  370. Besides stomping cities, they're useful for eliminating enemy groundcars
  371. and Defenders just before an invasion.  Since rockets are easily
  372. shot down if spied in mid-flight, it's sensible to launch them from
  373. attack subs near their targets.  [Because of the way Xconq works,
  374. messages about rockets don't always make sense.]"
  375. ))
  376.  
  377. (game-module (instructions (
  378.   )))
  379.  
  380. (game-module (design-notes (
  381.   )))
  382.